package com.zhangtingshu.pojo;

import java.sql.Timestamp;

/**
 * @author zhangtingshu
 * @category 帖子评论类
 */
public class Comment {
    private int id;//评论编号
    private int uid;//评论人id
    private String name;//评论人name
    private String info;//评论信息
    private int iid;//评论的该博客的编号
    private Timestamp createdate;//评论时间

    public Comment() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public int getIid() {
        return iid;
    }

    public void setIid(int iid) {
        this.iid = iid;
    }

    public Timestamp getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Timestamp createdate) {
        this.createdate = createdate;
    }

    public Comment(int id, int uid, String name, String info, int iid, Timestamp createdate) {
        this.id = id;
        this.uid = uid;
        this.name = name;
        this.info = info;
        this.iid = iid;
        this.createdate = createdate;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", uid=" + uid +
                ", name='" + name + '\'' +
                ", info='" + info + '\'' +
                ", iid=" + iid +
                ", createdate=" + createdate +
                '}';
    }
}
